package org.pentaho.actioneditor.client.processpanels;

import com.google.gwt.user.client.ui.*;
import org.pentaho.actioneditor.client.messages.Messages;


public class ResourceUI {

  private VerticalPanel root = new VerticalPanel();
  private TextBox name = new TextBox();
  private TextBox location = new TextBox();
  private ListBox sourceType = new ListBox();
  private TextBox mimeType = new TextBox();


  public void init() {
    Label obj104 = new Label(Messages.getUIInstance().resourceui_Name());
    root.add(obj104);
    root.add(name);
    Label obj105 = new Label(Messages.getUIInstance().resourceui_Location());
    root.add(obj105);
    root.add(location);
    Label obj106 = new Label(Messages.getUIInstance().resourceui_SourceType());
    root.add(obj106);
    sourceType.addItem(Messages.getUIInstance().resourceui_Solutionfile());
    sourceType.addItem(Messages.getUIInstance().resourceui_File());
    sourceType.addItem(Messages.getUIInstance().resourceui_Url());
    root.add(sourceType);
    Label obj107 = new Label(Messages.getUIInstance().resourceui_MimeType());
    root.add(obj107);
    root.add(mimeType);
    root.setWidth("100%");

  }

  public VerticalPanel getRoot() {
    return root;
  }
  public TextBox getName() {
    return name;
  }
  public TextBox getLocation() {
    return location;
  }
  public ListBox getSourceType() {
    return sourceType;
  }
  public TextBox getMimeType() {
    return mimeType;
  }

}
